package cn.wsalix.order.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.anlaser.repository.SimpleRepository;
import cn.wsalix.order.entity.Order;

public interface OrderRepository extends SimpleRepository<Order> {
	@Query("select u from Order u where u.tradeNo = :tradeNo")
	Order findByTradeNo(@Param("tradeNo") String tradeNo);

}
